<?php
require_once('Smarty-3.1.18/libs/Smarty.class.php');

class SmartyWithSetup extends Smarty {
    function __construct() {
        parent::__construct();
        $this->setTemplateDir('./templates/');
        $this->setCompileDir("./templates/compile/");
        $this->setConfigDir("./templates/configs/");
        $this->setCacheDir("./templates/cache");
//        $this->caching= Smarty::CACHING_LIFETIME_CURRENT;
    }
} 